#include "linux/page/page.h"

int make_rw(unsigned long address)
{
    unsigned int level = 0;
    pte_t *pte = lookup_address(address, &level);
    pte->pte |= _PAGE_RW;
    return 0;
}

int make_ro(unsigned long address)
{
    unsigned int level = 0;
    pte_t *pte = lookup_address(address, &level);
    pte->pte &= ~_PAGE_RW;
    return 0;
}

int main(int argc, char *argv[])
{
    return 0;
}